﻿using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;

namespace YYTea.MOdel.Model
{
    public class UserInfo /*: IdentityUser*/
    {
        public Guid UserInfoID { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 角色名
        /// </summary>
        public string RoleName { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string Mobile { get; set; }
        public string Qq { get; set; }
        //性别
        public Sex Sex { get; set; }
        public virtual ICollection<Order> Orders { get; set; }
        public ICollection<UserRole> userRoles { get; set; }
    }
    public enum Sex
    {
        男 = 1,
        女 = 0
    }


}
